import { provide } from 'vue';
import { getUid } from './utils';

function useInstanceId() {
    const instanceId = getUid();
    provide('parentComponentId', instanceId);
    return instanceId;
}

export { useInstanceId };
